package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Programming;

import tech.aistar.mapper.ProgrammingMapper;
import tech.aistar.service.IProgrammingService;


import java.util.List;
@Service
public class ProgrammingServiceImpl implements IProgrammingService {

    @Autowired
    private ProgrammingMapper programmingMapper;

    @Override
    public List<Programming> findAll() {
        return programmingMapper.findAll();
    }

    @Override
    public Programming findById(Long id) {
        return programmingMapper.findById(id);
    }

    @Override
    public List<Programming> findByPaperId(Long paperId) {
        return programmingMapper.findByPaperId(paperId);
    }
}
